package br.com.dufs.mvc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.dufs.mvc.dao.interfaces.AvesDAO;
import br.com.dufs.mvc.model.Aves;

import com.fscoreunipe.mvc.service.interfaces.ServiceGenericoBO;

@Service("avesBO")
public class AvesBOService implements ServiceGenericoBO<Aves, Integer> {

	@Autowired
	AvesDAO objDAO;

	@Override
	public Aves salvar(Aves object) {
		return objDAO.salvar(object);
	}

	@Override
	public Aves pesquisarPorId(Integer id) {
		return objDAO.pesquisarPorId(id);
	}

	@Override
	public Aves atualizar(Aves object) {
		return objDAO.atualizar(object);
	}

	@Override
	public void excluir(Aves object) {
		objDAO.excluir(object);
	}

	@Override
	public List<Aves> todos() {
		return objDAO.todos();
	}

	public List<Aves> listaPorCPF(String id) {
		return objDAO.listaPorCPF(id);
	}

	public int quantidade(String id) {
		return objDAO.quantidade(id);
	}

	public double total(String id) {
		return objDAO.total(id);
	}

}